/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __COMM_H
#define __COMM_H

#include "main.h"

typedef struct{
	uint8_t step;
	uint8_t cnt;
	uint8_t rxlen;
	uint8_t buff[160];
}comm_t;

enum {
	motor_angle = 0xf0,
};

#define 	huart_comm			huart1

void comm_init(void);
void comm_uart_handler(uint8_t data);

#endif /* __COMM_H */

/******************* (H) COPYRIGHT 2025 FUYEBING*****END OF FILE************/

